package com.ming.springcloud.user.dao;

import com.ming.springcloud.user.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository("userDao")
public interface IUserDAO extends JpaRepository<User, Integer> {


    @Transactional
    List<User> findByuserAccountAndUserPassword(String userAccount , String userPassword);

}
